
namespace DTO
{
    /// <summary>
    /// 
    /// </summary>
    public class SavePassRuleInput
    {
        public string Id { get; set; } = string.Empty;
        public int GroupId { get; set; }
        public string RuleName { get; set; } = string.Empty;
        public string Version { get; set; } = string.Empty;
        public List<Weekday> Weekday { get; set; } = new List<Weekday>();
        public List<StartAndEnd> Passables { get; set; } = new List<StartAndEnd>();
        public List<ImpassableInfo> Impassable { get; set; } = new List<ImpassableInfo>();
        public bool Del = false;
        public bool Enter { get; set; }
        public bool Default { get; set; }
    }
    public class Weekday
    {
        public List<int> day = new List<int>();
        public List<StartAndEnd> valid_cycle = new List<StartAndEnd>();
    }
    public class StartAndEnd
    {
        public string start_time { get; set; } = string.Empty;
        public string end_time { get; set; } = string.Empty;
    }
    public class ImpassableInfo
    {
        public string start { get; set; } = string.Empty;
        public string end { get; set; } = string.Empty;
        public List<StartAndEnd> valid_cycle { get; set; }
    }
}